package com.ls.fw.search.solrj.form.collection;

import org.hibernate.validator.constraints.NotBlank;

/**
 * delete an inactive shard
 */
public class DeleteShardForm {
	@NotBlank
	protected String action = "CREATESHARD";
	@NotBlank
	protected String shard;
	@NotBlank
	protected String collection;
	private Boolean deleteIndex = false;
	private Boolean deleteDataDir = false;
	private Boolean deleteInstanceDir = false;
	private String async;

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getShard() {
		return shard;
	}

	public void setShard(String shard) {
		this.shard = shard;
	}

	public String getCollection() {
		return collection;
	}

	public void setCollection(String collection) {
		this.collection = collection;
	}

	public Boolean getDeleteIndex() {
		return deleteIndex;
	}

	public void setDeleteIndex(Boolean deleteIndex) {
		this.deleteIndex = deleteIndex;
	}

	public Boolean getDeleteDataDir() {
		return deleteDataDir;
	}

	public void setDeleteDataDir(Boolean deleteDataDir) {
		this.deleteDataDir = deleteDataDir;
	}

	public Boolean getDeleteInstanceDir() {
		return deleteInstanceDir;
	}

	public void setDeleteInstanceDir(Boolean deleteInstanceDir) {
		this.deleteInstanceDir = deleteInstanceDir;
	}

	public String getAsync() {
		return async;
	}

	public void setAsync(String async) {
		this.async = async;
	}

}
